package com.example.iotlink.config;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.ApplicationListener;
import org.springframework.integration.mqtt.event.MqttMessageSentEvent;
import org.springframework.stereotype.Component;


@Slf4j
@Component
public class MqttSendListener implements ApplicationListener<MqttMessageSentEvent> {
    @Override
    public void onApplicationEvent(MqttMessageSentEvent messageSentEvent) {
        log.info("mqtt消息发送事件:{}",messageSentEvent.toString());
    }



}
